――――――――――――――――――――――――――――――――――――――――――――――――――
Touhou Community Reliant Automatic Patcher logfile
Branch: stable
Version: 2019-12-29
Build time: Dec 29 2019 18:15:42
Built by: brliron
Command line: "D:\Games\Touhou\Touhou 12.8 - Fairy Wars\thcrap\..\custom.exe"
――――――――――――――――――――――――――――――――――――――――――――――――――

Run configuration file: D:\Games\Touhou\Touhou 12.8 - Fairy Wars\thcrap\config\thpatch-en.js

Initializing patches...
EXE file name: D:\Games\Touhou\Touhou 12.8 - Fairy Wars\thcrap\..\custom.exe
(JSON) Resolving versions.js... 
 + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tsa/versions.js
  + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tasofro/versions.js
Hashing executable... → th128_custom v1.00a (original) (codepage 0)
(JSON) Resolving configuration for th128_custom.js... 
 + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tsa/global.js
  + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tasofro/global.js
   + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/script_latin/global.js
Game directory: D:\Games\Touhou\Touhou 12.8 - Fairy Wars
Plug-in directory: D:\Games\Touhou\Touhou 12.8 - Fairy Wars\thcrap

Initializing plug-ins...
(Font) Loading Aroania.ttf (426296 bytes)...
(Font) Loading Cirno.ttf (28952 bytes)...
(Font) Loading THBiolinum.otf (557212 bytes)...
(JSON) Resolving stringdefs.js... 
 + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tsa/stringdefs.js
   + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/script_latin/stringdefs.js
     + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/thpatch/lang_en/stringdefs.js
(JSON) Resolving th128_custom/stringlocs.js... 
 + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tsa/th128_custom/stringlocs.v1.00a.js
[Plugin] thcrap_tasofro.dll: not used for this game
[Plugin] thcrap_tsa.dll: initialized and active
(JSON) Resolving th128_custom/missions.js... not found
(JSON) Resolving th128_custom/loops.js... not found
(JSON) Resolving themes.js... 
 + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tsa/themes.js
    + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/thpatch/lang_en/themes.js
(JSON) Resolving th128_custom/musiccmt.js... not found
(JSON) Resolving th128_custom/spells.js... not found
(JSON) Resolving th128_custom/spellcomments.js... not found
Applying thcrap detours to D:\Games\Touhou\Touhou 12.8 - Fairy Wars\thcrap\..\custom.exe...
Detouring DLL functions (kernel32.dll)...
( 1/41) CopyFileA... not found
( 2/41) CopyFileExA... not found
( 3/41) CreateDirectoryA... OK
( 4/41) CreateFileA... OK
( 5/41) CreateFileMappingA... not found
( 6/41) CreateProcessA... not found
( 7/41) DeleteFileA... not found
( 8/41) FindFirstFileA... not found
( 9/41) FindNextFileA... not found
(10/41) FormatMessageA... OK
(11/41) GetCurrentDirectoryA... OK
(12/41) GetEnvironmentVariableA... OK
(13/41) GetFileAttributesA... not found
(14/41) GetFileAttributesExA... not found
(15/41) GetFullPathNameA... not found
(16/41) GetCommandLineA... OK
(17/41) GetModuleFileNameA... OK
(18/41) GetPrivateProfileIntA... not found
(19/41) GetPrivateProfileStringA... not found
(20/41) GetStartupInfoA... not found
(21/41) GetTempPathA... not found
(22/41) IsDBCSLeadByte... not found
(23/41) LoadLibraryA... not found
(24/41) MoveFileA... not found
(25/41) MoveFileExA... not found
(26/41) MoveFileWithProgressA... not found
(27/41) MultiByteToWideChar... OK
(28/41) OpenFileMappingA... not found
(29/41) ReadFile... OK
(30/41) RemoveDirectoryA... not found
(31/41) SetCurrentDirectoryA... OK
(32/41) SetEnvironmentVariableA... OK
(33/41) WideCharToMultiByte... OK
(34/41) WriteFile... OK
(35/41) WritePrivateProfileStringA... not found
(36/41) ExitProcess... OK
(37/41) CreateProcessW... not found
(38/41) CreateRemoteThread... not found
(39/41) LoadLibraryW... OK
(40/41) CloseHandle... OK
(41/41) SetFilePointer... not found
Detouring DLL functions (user32.dll)...
( 1/22) CharNextA... not found
( 2/22) CreateDialogParamA... not found
( 3/22) CreateWindowExA... not found
( 4/22) DefWindowProcA... not found
( 5/22) DialogBoxParamA... OK
( 6/22) DrawTextA... not found
( 7/22) GetClassInfoA... not found
( 8/22) GetClassInfoExA... not found
( 9/22) GetWindowLongA... not found
(10/22) GetWindowLongPtrA... not found
(11/22) InsertMenuItemA... not found
(12/22) LoadStringA... not found
(13/22) MessageBoxA... OK
(14/22) RegisterClassA... not found
(15/22) RegisterClassExA... not found
(16/22) SetDlgItemTextA... not found
(17/22) SetWindowLongA... not found
(18/22) SetWindowLongPtrA... not found
(19/22) SetWindowTextA... not found
(20/22) TabbedTextOutA... not found
(21/22) UnregisterClassA... not found
(22/22) GetWindowRect... not found
No binary hacks to apply.
No breakpoints to set up.
---------------------------
Complete run configuration:
---------------------------
{
  "thcrap_version_min": "0x20170905",
  "thcrap_url": "http://thpatch.net/wiki/Project:Download",
  "binhacks": {
    "log_restore": {
      "code": "e9[log_printf]",
      "title": "Restore the game's built-in logging"
    },
    "menu_desc_align": {
      "code": "52 ff75ac ff75b0 e8[GetTextExtentForFontID] 8d440010 50 db04e4 58 59 89ca 90909090",
      "title": "Menu description alignment"
    },
    "result_spell_align": {
      "code": "31c0",
      "title": "Remove spell \"alignment\" in the result screen"
    },
    "spell_name_fetch": {
      "code": "8b4d0c5131c9515151",
      "title": "Prepare deferred spell name fetching"
    },
    "sprintf_call_esp+14": {
      "code": "50e8[strings_vsprintf]8944e414",
      "title": "Safe sprintf (esp+14)"
    },
    "sprintf_call_esp+18": {
      "code": "50e8[strings_vsprintf]8944e418",
      "title": "Safe sprintf (esp+18)"
    },
    "sprintf_call_esp+1c": {
      "code": "50e8[strings_vsprintf]8944e41c",
      "title": "Safe sprintf (esp+1c)"
    },
    "sprintf_call_esp+34": {
      "code": "50e8[strings_vsprintf]8944e434",
      "title": "Safe sprintf (esp+34)"
    },
    "sprintf_call_esp+38": {
      "code": "e8[strings_vsprintf]89442434",
      "title": "Safe sprintf (esp+34)"
    },
    "sprintf_call_esp+3c": {
      "code": "50e8[strings_vsprintf]8944e43c",
      "title": "Safe sprintf (esp+3c)"
    },
    "sprintf_call_ebp-50": {
      "code": "50e8[strings_vsprintf]8945b0",
      "title": "Safe sprintf (ebp-50)"
    },
    "sprintf_call_ebp-88": {
      "code": "50e8[strings_vsprintf]898578ffffff",
      "title": "Safe sprintf (ebp-88)"
    },
    "sprintf_call_ebp-8c": {
      "code": "50e8[strings_vsprintf]898574ffffff",
      "title": "Safe sprintf (ebp-8c)"
    },
    "sprintf_call_ebp-208": {
      "code": "5190909090909090909090e8[strings_vsprintf]83c40c509090",
      "title": "Safe sprintf (ebp-208)"
    },
    "sprintf_call_ebp-200": {
      "code": "5090909090909090909090e8[strings_vsprintf]8b4d0c83c40c509090",
      "title": "Safe sprintf (ebp-200)"
    },
    "sprintf_msvcrt14_esp+34": {
      "title": "Safe Visual Studio 2015-style sprintf (esp+34)",
      "code": "e8[strings_vsprintf_msvcrt14]89442434"
    },
    "sprintf_msvcrt14_esp+3c": {
      "title": "Safe Visual Studio 2015-style sprintf (esp+3c)",
      "code": "e8[strings_vsprintf_msvcrt14]8944243c"
    },
    "sprintf_msvcrt14_ebp-10c": {
      "title": "Safe Visual Studio 2015-style sprintf (ebp-10c)",
      "code": "e8[strings_vsprintf_msvcrt14]8985f4feffff"
    },
    "sprintf_rep": {
      "code": "8b",
      "title": "Safe sprintf (replace)"
    },
    "meiryo_strcmp_remove": {
      "code": "9090",
      "title": "Don't restrict use of the Meiryo font to Japanese locale"
    },
    "ending_copy_rem": {
      "title": "Remove the useless string copy and buffer overflow in ending messages, #1 (remember line start and skip to the end of the string)"
    },
    "ending_copy_rep": {
      "code": "8b",
      "title": "Remove the useless string copy and buffer overflow in ending messages, #2 (LEA → MOV)"
    },
    "spell_align": {
      "title": "Correctly align right-aligned text (TH16+)",
      "code": "ff7518 56 e8[GetTextExtentForFontID] 83c008 d1e0 89c6 8b442410 8b4c240c 8b542414 8b4c8808 8bc1 c1f808 8b9482f0f48401 0fb6c1 8d0c40 8b8224010000 8b0cc8 8b451c 8d1400 89f0 8b742410 909090"
    },
    "antitamper_remove_check": {
      "title": "Don't quit the game on an invalid anti-tampering checksum",
      "code": "33c0 c3"
    },
    "hud_force_redraw": {
      "title": "Redraw the HUD every frame, because we might be drawing TL notes there",
      "code": "eb"
    },
    "ret": {
      "code": "c3",
      "title": "Returns from a function"
    },
    "meiryo_disable": {
      "code": "83c414 909090",
      "title": "Disable the enumeration of Meiryo for compatibility to existing font settings"
    },
    "font_dialog_params": {
      "code": "6a036a006a0068000000006a006a006a006890010000",
      "title": "Set parameters for alternate dialog font"
    },
    "font_dialog_set": {
      "code": "6a019090",
      "title": "Use alternate dialog font"
    }
  },
  "breakpoints": {
    "ruby_offset": {
      "font_dialog": 0,
      "font_ruby": 2
    },
    "ascii_params": {
      "cavesize": 5
    }
  },
  "tlnotes": {
    "reference_resolution": [
      1280,
      960
    ],
    "font": "'MS Gothic' 32 0 400 DEFAULT_QUALITY",
    "valign": "bottom"
  },
  "font": "Touhou Biolinum",
  "fontrules": {
    "* 15 * 700": "* 21 * 100 NONANTIALIASED_QUALITY"
  },
  "game": "th128_custom",
  "console": false,
  "dat_dump": false,
  "patches": [
    {
      "id": "base_tsa",
      "min_build": "0x20140528",
      "servers": [
        "https://mirrors.thpatch.net/nmlgc/base_tsa/"
      ],
      "thcrap_version_min": "0x20191214",
      "title": "Basic support for Team Shanghai Alice games",
      "url_engine": "http://thpatch.net/wiki/Project:Download\n\nThis is the last build you'll ever have to download and extract manually, because we now have digitally signed automatic updates of thcrap itself!",
      "archive": "D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tsa/"
    },
    {
      "dependencies": [
        "base_tsa"
      ],
      "fonts": {
        "Aroania.ttf": true,
        "Cirno.ttf": true,
        "THBiolinum.otf": true
      },
      "id": "script_latin",
      "servers": [
        "https://mirrors.thpatch.net/nmlgc/script_latin/"
      ],
      "title": "Shared data for languages using Latin script",
      "archive": "D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/script_latin/"
    },
    {
      "dependencies": [
        "base_tsa"
      ],
      "id": "western_name_order",
      "servers": [
        "https://mirrors.thpatch.net/nmlgc/western_name_order/"
      ],
      "title": "Western name order",
      "archive": "D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/western_name_order/"
    },
    {
      "id": "lang_en",
      "title": "English language pack",
      "dependencies": [
        "nmlgc/base_tsa",
        "nmlgc/base_tasofro",
        "nmlgc/script_latin",
        "nmlgc/western_name_order"
      ],
      "update": true,
      "servers": [
        "https://srv.thpatch.net/lang_en/"
      ],
      "archive": "D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/thpatch/lang_en/"
    }
  ],
  "thcrap_dir": "D:\\Games\\Touhou\\Touhou 12.8 - Fairy Wars\\thcrap",
  "run_cfg_fn": "D:\\Games\\Touhou\\Touhou 12.8 - Fairy Wars\\thcrap\\config\\thpatch-en.js",
  "build": "v1.00a",
  "patchhooks": {
    "msg*.dat": [
      {
        "patch_func": 1377600608,
        "patch_size_func": 0
      }
    ],
    "p*.msg": [
      {
        "patch_func": 1377600608,
        "patch_size_func": 0
      }
    ],
    "s*.msg": [
      {
        "patch_func": 1377600608,
        "patch_size_func": 0
      }
    ],
    "msg*.msg": [
      {
        "patch_func": 1377600608,
        "patch_size_func": 0
      }
    ],
    "e*.msg": [
      {
        "patch_func": 1377600576,
        "patch_size_func": 0
      }
    ],
    "*.anm": [
      {
        "patch_func": 1377570384,
        "patch_size_func": 1377606064
      }
    ],
    "*.std": [
      {
        "patch_func": 0,
        "patch_size_func": 1377606064
      }
    ],
    "*bgm*.fmt": [
      {
        "patch_func": 1377581104,
        "patch_size_func": 1377582176
      }
    ]
  }
}---------------------------
(Data) Resolving th128_custom/dialog_103.bin... not found
(JSON) Resolving th128_custom/dialog_103.js... 
 + D:/Games/Touhou/Touhou 12.8 - Fairy Wars/thcrap/repos/nmlgc/base_tsa/th128_custom/dialog_103.js
Shutting down repatch watcher thread.
Statistics:
----
• Last error codes: 0 (queue), 0 (changes)
• Total number of file changes parsed: 0
• Maximum buffer fill state: 0/65536 bytes
----
Removing plug-ins...
